package com.example.basicdemo.model.domain;

import com.google.common.collect.Lists;
import com.isyscore.os.dev.api.IsyscoreObject;

import java.util.List;

/**
 *
 */
public class RentalTreeNodeDomain implements IsyscoreObject {

    /**
     * id
     */
    protected Integer id;

    /**
     * 上级组织id
     */
    protected Integer parentId;

    /**
     * 子节点
     */
    protected List<RentalTreeNodeDomain> rentalInfoList = Lists.newArrayList();

    public void addRentalInfo(RentalTreeNodeDomain node) {
        rentalInfoList.add(node);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public RentalTreeNodeDomain setParentId(Integer parentId) {
        this.parentId = parentId;
        return this;
    }

    public List<RentalTreeNodeDomain> getRentalInfoList() {
        return rentalInfoList;
    }

    public void setRentalInfoList(List<RentalTreeNodeDomain> rentalInfoList) {
        this.rentalInfoList = rentalInfoList;
    }
}